import yaml

def read_yaml(file):
    with open(file,'r',encoding='utf-8')as f:
        return yaml.safe_load(f)